package com.gitee.wsl.struct.grammar


import com.gitee.wsl.struct.grammar.parser.token.Token
import com.gitee.wsl.struct.grammar.parser.tokenizer.Tokenizer
import kotlin.reflect.KProperty0

/**
 * Marker interface to scope extensions.
 */
interface GrammarContext{

    val tokenizer: Tokenizer

    val ignoreCase: Boolean

    fun register(token: Token)

    fun Token.registed(): Token = this.also {  register(it)}
}
